package ressources;

import i18n.I18nManager;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.Properties;

public class Props {
	private static I18nManager i18n;
	private static Properties props;
	static{
		i18n = new I18nManager();
		props = new Properties();
		try {
			FileInputStream fis = new FileInputStream("bin/ressources/props.properties");
			props.load(fis);
		} catch (FileNotFoundException e) {
			System.err.println(e.getMessage());
			e.printStackTrace();
		} catch (IOException e) {
			System.err.println(e.getMessage());
			e.printStackTrace();
		}
	}
	
	public Props() {
	}

	/**
	 * @return the i18n
	 */
	public static I18nManager getI18n() {
		return i18n;
	}

	/**
	 * @param i18n the i18n to set
	 */
	public static void setI18n(I18nManager i18n) {
		Props.i18n = i18n;
	}

	public static Properties getProps() {
		return props;
	}

	public static void setProps(Properties props) {
		Props.props = props;
	}

}
